/*
 * BrowsingHistoryContract.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.browsing;

import android.support.design.widget.TabLayout;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.interfaces.RefreshListener;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;

import java.util.List;

import io.realm.Realm;

/** 我的 浏览历史 */
public class BrowsingHistoryContract {

    interface Presenter extends BasePresenter {
        void deleteAll();

        void changeData(String tagDataName);

        void getHistoryData(boolean isRefresh);

        void destroy();
    }

    interface View
            extends BaseView<Presenter>,
            RefreshLayoutStateListener,
            RefreshListener,
            LoadMoreListener {

        void refreshUI();

        TabLayout getTabLayout();

        void setDisPlayItems(List<DisplayListItem> disPlayItems);

        Realm getRealm();

        void showDialog();

        void dismissDialog();

        void setTvClearVisible(boolean visible);
    }
}
